package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.UserConsumptionRecordsMapper;
import com.ruoyi.boss.domain.UserConsumptionRecords;
import com.ruoyi.boss.service.IUserConsumptionRecordsService;

/**
 * 用户详情-消费记录-新增Service业务层处理
 * 
 * @author rui
 * @date 2025-08-18
 */
@Service
public class UserConsumptionRecordsServiceImpl implements IUserConsumptionRecordsService 
{
    @Autowired
    private UserConsumptionRecordsMapper userConsumptionRecordsMapper;

    /**
     * 查询用户详情-消费记录-新增
     * 
     * @param consumptionId 用户详情-消费记录-新增主键
     * @return 用户详情-消费记录-新增
     */
    @Override
    public UserConsumptionRecords selectUserConsumptionRecordsByConsumptionId(Long consumptionId)
    {
        return userConsumptionRecordsMapper.selectUserConsumptionRecordsByConsumptionId(consumptionId);
    }

    /**
     * 查询用户详情-消费记录-新增列表
     * 
     * @param userConsumptionRecords 用户详情-消费记录-新增
     * @return 用户详情-消费记录-新增
     */
    @Override
    public List<UserConsumptionRecords> selectUserConsumptionRecordsList(UserConsumptionRecords userConsumptionRecords)
    {
        return userConsumptionRecordsMapper.selectUserConsumptionRecordsList(userConsumptionRecords);
    }

    /**
     * 新增用户详情-消费记录-新增
     * 
     * @param userConsumptionRecords 用户详情-消费记录-新增
     * @return 结果
     */
    @Override
    public int insertUserConsumptionRecords(UserConsumptionRecords userConsumptionRecords)
    {
        return userConsumptionRecordsMapper.insertUserConsumptionRecords(userConsumptionRecords);
    }

    /**
     * 修改用户详情-消费记录-新增
     * 
     * @param userConsumptionRecords 用户详情-消费记录-新增
     * @return 结果
     */
    @Override
    public int updateUserConsumptionRecords(UserConsumptionRecords userConsumptionRecords)
    {
        return userConsumptionRecordsMapper.updateUserConsumptionRecords(userConsumptionRecords);
    }

    /**
     * 批量删除用户详情-消费记录-新增
     * 
     * @param consumptionIds 需要删除的用户详情-消费记录-新增主键
     * @return 结果
     */
    @Override
    public int deleteUserConsumptionRecordsByConsumptionIds(Long[] consumptionIds)
    {
        return userConsumptionRecordsMapper.deleteUserConsumptionRecordsByConsumptionIds(consumptionIds);
    }

    /**
     * 删除用户详情-消费记录-新增信息
     * 
     * @param consumptionId 用户详情-消费记录-新增主键
     * @return 结果
     */
    @Override
    public int deleteUserConsumptionRecordsByConsumptionId(Long consumptionId)
    {
        return userConsumptionRecordsMapper.deleteUserConsumptionRecordsByConsumptionId(consumptionId);
    }
}
